﻿<%@ Page Title="" Language="C#" MasterPageFile="~/LoginMaster.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="myWallet.Login" meta:resourcekey="PageResource" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div id="pnMessage" runat="server" visible="false" class="message">
    </div>
    <table width="100%">
        <tr>
            <td width="100px">
                <%= GetGlobalResourceObject("Common", "Email")%>
            </td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server" CssClass="TextBox" Width="220px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="requiredEmail" runat="server" ControlToValidate="txtEmail"
                    CssClass="failureNotification" ForeColor="Red" Font-Size="12px" Display="Dynamic"
                    SetFocusOnError="True" ValidationGroup="GroupLoginValid" 
                    meta:resourcekey="requiredEmail"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="regularEmail" runat="server" ControlToValidate="txtEmail"
                    ForeColor="Red" SetFocusOnError="True" Display="Dynamic" Font-Size="12px"
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                    ValidationGroup="GroupLoginValid" 
                    meta:resourcekey="regularEmail"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                <%= GetGlobalResourceObject("Common", "Password")%>
            </td>
            <td>
                <asp:TextBox ID="txtPassword" runat="server" CssClass="TextBox" TextMode="Password" Width="220px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="requiredPassword" runat="server" ControlToValidate="txtPassword"
                    CssClass="failureNotification" ForeColor="Red" Display="Dynamic" Font-Size="12px"
                    SetFocusOnError="True" ValidationGroup="GroupLoginValid" 
                    meta:resourcekey="requiredPassword"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <asp:CheckBox ID="ckbRemember" runat="server" meta:resourcekey="ckbRemember" />
            </td>
        </tr>
    </table>
    <div style="text-align: center; margin-top: 20px;">
        <asp:Button ID="btnLogin" runat="server" CssClass="ButtonGreen" 
            ValidationGroup="GroupLoginValid" Width="100px"
            meta:resourcekey="btnLogin" onclick="btnLogin_Click"/>
    </div>
</asp:Content>
